package com.wsd.service;

import java.util.Deque;
import java.util.List;

import com.wsd.bean.Category;

public interface CategoryService {
	/**
	 * 得到根类别类别
	 * @return
	 */
	public Category getRootCategorie();
	/**
	 * 添加一组类别
	 * @param categories
	 * @return
	 */
	public List<Category> saveCategories(List<Category> categories);
	
	/**
	 * 删除类别
	 * @param category
	 */
	public void delCategory(Category category);
	
	public void update(Category category);
	
	public Category findById(Integer id);
	/**
	 * @param level
	 * @return
	 */
	public List<Category> findByLevel(int level);
	
	public Deque<Category> getParentCategorys(Category c);
	
}
